package com.meizi.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meizi.core.tool.api.PageUtils;
import com.meizi.mall.product.entity.AttrGroupEntity;
import com.meizi.mall.product.vo.AttrGroupWithAttrsVo;
import com.meizi.mall.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author meizi
 * @email enjoymeizi@gmail.com
 * @date 2021-01-06 13:26:58
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params, Long categoryId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    PageUtils getRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

    List<SpuItemAttrGroupVo> getAttrGroupWithAttrBySpuId(Long spuId, Long catalogId);
}

